package com.nhn.android.samples.webview;


import android.app.Dialog;
import android.content.Context;
import android.os.Handler;
import android.view.Window;

public class WebViewDialog extends Dialog{

	InAppWebViewControl webvew = null;
	
	public WebViewDialog(Context context) {
		super(context);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		webvew = new InAppWebViewControl(context);
		setContentView(webvew);
	}
	
	public void setOnClickListener(DialogButtonClickListener listener) {
		webvew.setButtonClickListener(listener);
	}
	
	public void loadUrl(String url) {
		webvew.loadUrl(url);
	}
	public void setJobCompleteListener (Handler handler) {
		webvew.setJobCompleteListener(handler);
	}

}
